package edu.bbu.commonproject.desktop.gui.controller;

import edu.bbu.commonproject.desktop.client.factory.CLTFactory;
import edu.bbu.commonproject.desktop.client.services.DirectoryCLTServices;
import edu.bbu.commonproject.desktop.client.services.FileCLTServices;
import edu.bbu.commonproject.desktop.client.services.UserCLTServices;
import edu.bbu.commonproject.desktop.gui.controller.utils.StringFormatter;
import edu.bbu.commonproject.desktop.gui.controller.utils.UserProperties;

/**
 * The base controller. This is the ancestor of all other controllers.
 */
public class BaseController
{
	/** The user services. */
	protected static UserCLTServices userServices = CLTFactory.getCLTFactory(CLTFactory.THRIFT_FACTORY).getUserCLTServices();
	
	/** The file services. */
	protected static FileCLTServices fileServices = CLTFactory.getCLTFactory(CLTFactory.THRIFT_FACTORY).getFileCLTServices();
	
	/** The directory services. */
	protected static DirectoryCLTServices directoryServices = CLTFactory.getCLTFactory(CLTFactory.THRIFT_FACTORY).getDirectoryCLTServices();

	/** The users properties. */
	protected static UserProperties userProperties = new UserProperties();
	
	/** The string formatter, to format the password. */
	protected static StringFormatter stringFormatter = new StringFormatter();
}
